<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        住院病人查询
    </title>
    <style>
        .topTitle {
            font-size: 16px;
            line-height: 30px;
            text-align: center;
        }
        .spp{
            height:22px;
            line-height:22px;
            padding:0 5px;
            font-size:13px;
            background-color:#009688;
            display:inline-block;
            color:#fff;
            white-space:nowrap;
            text-align:center;
            border:none;
            border-radius:0px;
            cursor:pointer;
            opacity:.9;
        }

    </style>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../css/x-admin.css" media="all">
    <link rel="stylesheet" href="../css/pag.css" media="all">
    <link type="text/css" rel="stylesheet" href="../js/jedate/test/jeDate-test.css">
    <link type="text/css" rel="stylesheet" href="../js/jedate/skin/jedate.css">
    <script type="text/javascript" src="../js/jedate/src/jedate.js"></script>

</head>
<body>
<div class="x-nav">
            <span class="layui-breadcrumb">
              <a><cite>住院管理</cite></a>
              <a><cite>病人查询</cite></a>
            </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon"
                                                                        style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body">
    <form class="layui-form x-center" action="" style="width:85%" id="brForm">
    <input type="hidden" name="currentPageNo" id="currentPageNo" value="1"/>
        <div class="layui-form-pane">
            <div class="layui-form-item">
                <label class="layui-form-label">住院号</label>
                <div class="layui-input-inline" style="width:100px">
                    <input type="text" name="qryUserId" value="<c:if test='${qryUserId != 0}'>${qryUserId}</c:if>" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-inline" style="width:100px">
                    <input type="text" name="qryUserName" value="${qryUserName}" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">科室</label>
                <div class="layui-input-inline" style="width:100px">
                    <input type="text" name="qryKeshi" value="${qryKeshi}" autocomplete="off" class="layui-input">
                </div>
                <br>
                <br>
                <br>
                <br>
                <label class="layui-form-label" >入院时间</label>
                <div class="layui-input-inline" style="width:100px">
                    <input style="width: 140px" type="text" name="qrycheckInTime" value="<c:if test='${qrycheckInTime !="1971-12-12 12:12:12"}'>${qrycheckInTime}</c:if>"  align="center" class="layui-input" id="checkInTime" >
                </div>

                <div class="layui-input-inline" style="margin-left:50px;width:80px;height: 80px">
                    <button class="layui-btn" style="width: 80px" lay-submit="" lay-filter="*">搜索</button>
                </div>
            </div>
        </div>
    </form>
    <div class="topTitle">
        <strong>住院病人列表</strong>
    </div>
    <span class="x-right" style="line-height:25px" align="left">共${totalCount}条记录&nbsp;&nbsp;>&nbsp;&nbsp;第${currentPageNo}页/共${totalPageCount}页</span>
    <table class="tablelist">
        <thead>
        <tr>
            <th width="12%">
                住院号
            </th>
            <th width="12%">
                姓名
            </th>
            <th width="12%">
                性别
            </th>
            <th width="12%">
                年龄
            </th>
            <th width="12%">
                科室
            </th>
            <th width="8%">
                床位号
            </th>
            <th width="15%">
                入院时间
            </th>
            <th width="19%">
                操作
            </th>
        </tr>
        </thead>
        <tbody id="brList">
        <c:forEach var="zuyuandengji" items="${zuyuandengjiList}">
            <tr>
                <td>
                    ${zuyuandengji.userId}
                </td>
                <td>${zuyuandengji.userName}</td>
                <td>
                    <c:if test="${zuyuandengji.sex eq 1}">男</c:if>
                    <c:if test="${zuyuandengji.sex eq 2}">女</c:if>
                </td>
                <td>
                    ${zuyuandengji.age}
                </td>
                <td>
                    ${zuyuandengji.zkName}
                </td>
                <td>
                    ${zuyuandengji.bNo}
                </td>
                <td>
                    <fmt:formatDate value="${zuyuandengji.checkInTime}" pattern="YYYY-MM-dd HH:mm:ss"/>
                </td>
                <td>
                    <a href="/brck?userId=${zuyuandengji.userId}" style="color:#106ea9"><button class="spp">查看</button></a>&nbsp;&nbsp;
                    <a href="/brzk?userId=${zuyuandengji.userId}" style="color:#106ea9"><button class="spp">转科</button></a>&nbsp;&nbsp;
                    <a href="/cydj?userId=${zuyuandengji.userId}" style="color:#106ea9"><button class="spp">出院</button></a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <input type="hidden" name="totalPageCount" id="totalPageCount" value="${totalPageCount}"/>
    <div class="page" v-show="show" >
        <div class="pagelist">
            <span class="jump"><a href="javascript:page_nav(document.forms[0],1);"> 首页</a></span>
            <span class="jump"><a href="javascript:page_nav(document.forms[0],${currentPageNo - 1 });">上一页</a></span>
            <span class="jump"><a href="javascript:page_nav(document.forms[0],${currentPageNo + 1 });">下一页</a></span>
            <span class="jump"><a href="javascript:page_nav(document.forms[0],${totalPageCount });">尾页</a></span>
            <span class="jumppoint">跳转到：</span>
            <span class="jumpinp"><input type="text" name="inputPage" id="inputPage"/></span>
            <button type="button" class="jump gobtn" onClick='jump_to(document.forms[0],document.getElementById("inputPage").value)'>GO</button>
            </span>
        </div>
    </div>

    </div>
</div>
</body>
<script src="../lib/layui/layui.js" charset="utf-8"></script>
<script src="../lib/layui/layui.all.js" charset="utf-8"></script
<script src="../js/x-layui.js" charset="utf-8"></script>
<script src="../js/jquery2.js" charset="utf-8"></script>
<script src="../js/js.js" charset="utf-8"></script>
<script src="../js/zygl/rollpage.js" charset="utf-8"></script>
<script>
    layui.use(['laydate', 'element', 'laypage', 'layer'], function () {
        $ = layui.jquery;//jquery
        lement = layui.element();//面包导航
        laypage = layui.laypage;//分页
        layer = layui.layer;//弹出层

    });
</script>
<script>
    var enLang = {
        name: "en",
        month: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"],
        weeks: ["SUN", "MON", "TUR", "WED", "THU", "FRI", "SAT"],
        times: ["Hour", "Minute", "Second"],
        timetxt: ["Time", "Start Time", "End Time"],
        backtxt: "Back",
        clear: "Clear",
        today: "Now",
        yes: "Confirm",
        close: "Close"
    }
    jeDate("#checkInTime", {
        festival: true,
        minDate: "1900-01-01",              //最小日期
        maxDate: "2099-12-31",              //最大日期
        method: {
            choose: function (params) {

            }
        },
        format: "YYYY-MM-DD hh:mm:ss"
    });
</script>

<script>
    $('.tablelist tbody tr:odd').addClass('odd');
</script>
</html>